<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/common/validate.jsp"%>
<%
    String keyword = input.getDesc("keyword", "");
    if ("".equals(keyword)) {
        msg.setErrcodeAndErrmsg(30999, "请输入搜索内容");
        Tools.encryptPrint(out, msg);
        return;
    }
    Map<String, List<Map>> contactMap = UserUtil.getContact(hospital, keyword);
    if (contactMap == null || contactMap.isEmpty()) {
        msg.put("data", Collections.EMPTY_MAP);
        msg.setErrcodeAndErrmsg(30041, "暂未查到您所要的数据");
    } else {
        msg.put("data", contactMap);
    }
    Tools.encryptPrint(out, msg);
%>